D_SEG segment
AUGEND DW,99251
SUM DW,?
D_SEG ends   

E_SEG segment 
ADDEND DW,-15962
E_SEG ends   

C_SEG segment 
main proc far 
  assume cs :C_SEG, ds :D_SEG,es :E_SEG
                                     
start:  
  push ds    
  sub ax,ax
  push ax    
  mov ax,D_SEG   
  mov ds,ax  
  mov ax,E_SEG  
  mov es,ax     

  mov ax,[AUGEND]
  mov dx,[AUGEND+1]
  
  mov cx,es:[ADDEND]
  mov bx,es:[ADDEND]
  
  add ax,cx
  adc dx,bx
  
  mov [SUM+1],dx
  mov [SUM],ax  

  ret       
main endp  
C_SEG ends 
  end start   
